//
//  FPMeProfileStepView.m
//  FinanceProject
//
//  Created by 陈显摆 on 2025/5/16.
//

#import "FPMeProfileStepView.h"

@implementation FPMeProfileStepView

- (void)awakeFromNib {
    
    [super awakeFromNib];
    
    self.backgroundColor = UIColor.clearColor;
    self.backView.backgroundColor = UIColor.whiteColor;
    self.backView.clipsToBounds = YES;
    self.backView.layer.cornerRadius = 5.f;
    
    self.lineView1.clipsToBounds = YES;
    self.lineView1.layer.cornerRadius = 2.f;
    
    self.lineView2.clipsToBounds = YES;
    self.lineView2.layer.cornerRadius = 2.f;
    
    self.lab1.clipsToBounds = YES;
    self.lab1.layer.cornerRadius = 8.f;
    
    self.lab2.clipsToBounds = YES;
    self.lab2.layer.cornerRadius = 8.f;
    
    self.lab3.clipsToBounds = YES;
    self.lab3.layer.cornerRadius = 8.f;
    
    self.tipLab1.textColor = [UIColor hexColor:@"#3A3A3A"];
    
}

- (void)setStep:(NSInteger)step {
    
    if (step == 1) {
        
        self.lab1.backgroundColor = MAIN_BLUE_COLOR;
        self.lineView1.backgroundColor = [UIColor hexColor:@"#DDDDDD"];
        self.lineView2.backgroundColor = [UIColor hexColor:@"#DDDDDD"];
        self.lab2.textColor = [UIColor hexColor:@"#999999"];
        self.lab3.textColor = [UIColor hexColor:@"#999999"];
        self.lab2.backgroundColor = [UIColor hexColor:@"#DDDDDD"];
        self.lab3.backgroundColor = [UIColor hexColor:@"#DDDDDD"];
        self.tipLab2.textColor = [UIColor hexColor:@"#9A9A9A"];
        self.tipLab3.textColor = [UIColor hexColor:@"#9A9A9A"];
    }
    else if (step == 2) {
        
        self.lab1.backgroundColor = MAIN_BLUE_COLOR;
        self.lab2.backgroundColor = MAIN_BLUE_COLOR;
        self.lineView1.backgroundColor = MAIN_BLUE_COLOR;
        self.lineView2.backgroundColor = [UIColor hexColor:@"#DDDDDD"];
        self.lab2.textColor = UIColor.whiteColor;
        self.lab3.textColor = [UIColor hexColor:@"#999999"];
        self.lab2.backgroundColor = MAIN_BLUE_COLOR;
        self.lab3.backgroundColor = [UIColor hexColor:@"#DDDDDD"];
        self.tipLab2.textColor = [UIColor hexColor:@"#3A3A3A"];
        self.tipLab3.textColor = [UIColor hexColor:@"#9A9A9A"];
    }
}

@end
